package jwdt.vo;


public class ColumnVo {

	public static final String COLUMN_NAME = "COLUMN_NAME";	
	private String columnName;
	public static final String REMARKS = "REMARKS";	
	private String remarks;
	public static final String TYPE_NAME = "TYPE_NAME";	
	private String typeName;
	public static final String COLUMN_SIZE = "COLUMN_SIZE";	
	private int columnSize;
	public static final String IS_NULLABLE = "IS_NULLABLE";	
	private boolean isNullable;
	
	public  ColumnVo(){}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getRemarks() {
		if(remarks == null || remarks.length() < 1){
			return columnName;
		}
		return remarks;
	}

	public void setRemarks(String remarks) {
		if(remarks != null && remarks.length() > 0){
			try {
				byte[] b = remarks.getBytes("UTF-8");
				remarks = new String(b); 
			} catch (Exception e) {}
		}		
		this.remarks = remarks;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public int getColumnSize() {
		return columnSize;
	}

	public void setColumnSize(int columnSize) {
		this.columnSize = columnSize;
	}

	public boolean isNullable() {
		return isNullable;
	}

	public void setNullable(boolean isNullable) {
		this.isNullable = isNullable;
	}
}
